import { http } from '@/utils/http/axios';

/**
 * @description: 个人资料
 */
export function profileInfo() {
  return http.request({
    url: '/auth/profile',
    method: 'POST',
  });
}

/**
 * @description: 编辑资料
 */
export function editProfile(data) {
  return http.request({
    url: '/profile',
    method: 'PATCH',
    data,
  });
}

/**
 * @description: 用户修改密码
 */
export function editPassword(params) {
  return http.request({
    url: `/profile/password`,
    method: 'PUT',
    params,
  });
}
